#!/bin/env python
# -*- coding: utf-8 -*-

class NetDisk:
	"""
	base class for access net disk
	"""
	
	def __init__(self, email, passwd):
		self.email = email
		self.passwd  = passwd
		
	def login(self):
		"""
		login mail
		"""
		pass
	
	def init_netdisk(self):
		"""
		init access net disk
		"""
		pass
	
	def list_root(self):
		"""
		list root of net disk
		"""
		pass
		
	def list_dir(self, dir):
		"""
		list one directory
		"""
		pass
		
	def download(self, netdisk_file, local_file):
		"""
		download one file from netdisk
		"""
		pass
		
	def upload(self, local_file, netdisk_file):
		"""
		upload one file to netdisk
		"""
		pass
	
	def mkdir(self, dir_name, netdisk_dir):
		"""
		mkdir in netdisk
		"""
		pass
	
	def remove(self, netdisk_file):
		"""
		remove one file or directory from netdisk
		"""
		pass
		
	def move(self, file, dir):
		"""
		move file(s) to directory
		"""
		pass
		
	def ping(self):
		"""
		keep connection, avoid service session timeout
		"""
		pass

	def logout(self):
		"""
		logout mail
		"""
		pass
		